const grid = () => {

    //模板引擎格式化函数
    $.views.helpers({
        formatNum: function (string) {
            return parseInt(string, 10);
        },
        formatDate: function (date) {
            return moment(parseInt(date) * 1000).format('YYYY-MM-DD');
        }
    });


    //修改表格默认值
    $.extend($.fn.bootstrapTable.defaults, {
        pagination: true,
        pageSize: 15,
        pageList: [15, 30, 50, 75],
        sortOrder: 'desc',
        showColumns: true
    });

};


export {
    grid
}